home *** CD-ROM | disk | FTP | other *** search
- @echo off
- ::
- ::This batch file was designed by Ryan Irby, if the file
- ::is not exactly 8865 bytes long, then this is a modified
- ::copy, and it is not the original.
- ::
- ::You can change which game this works on by changing
- ::the line below to the name of the (i.e. - set %game=heretic)
-
- set %game=doom
-
-
-
- call c:\dos\save.bat
- ::
- ::You can also change what your drive is with the following line.
- ::(i.e. - set %y=x: , where x is the letter of your drive)
- SET %y=c:
- ver > version.$$$
- find /I /C "6." version.$$$
- if errorlevel 1 goto wrongver
- mem /m ansi.sys > ansi.$$$
- find /I /C "not" ansi.$$$
- if errorlevel 1 goto doit1
- if errorlevel 0 goto noansi
-
- :noansi
- if not exist c:\dos\devadd.com goto doit1
- c:\dos\devadd %y%\dos\ansi.sys
-
- :doit
- mode con: cols=80 lines=50
- cls
- echo.
- echo The fun allowed on a computer!
- echo
- echo.
- pause > nul
- cls
- echo.
- echo Please read the following line.
- echo.
- echo This batch file was created by
- echo.
- pause > nul
-
- :doit1
- cls
- if %1!==! goto Input
- if "%1"=="read" goto Read
- if "%1"=="help" goto Help
- if "%1"=="clean" goto Cleanup
- cls
- if not exist %y%\%game%\wads\nul goto Nowads
-
- :Wadsdir
- %y%
- if exist %1 move %1 %y%\%game%\wads
- if exist %2 move %2 %y%\%game%\wads
- if exist %3 move %3 %y%\%game%\wads
- cd\%game%\wads
- if exist %1 move %1 %y%\%game%
- if exist %2 move %2 %y%\%game%
- if exist %3 move %3 %y%\%game%
- if not exist %y%\%game%\%1 goto Input
- if "%2"=="skip" goto Skip
- if "%3"=="skip" goto Skip
- if "%4"=="skip" goto Skip
- goto Run
-
- :Nowads
- %y%
- if exist %1 move %1 %y%\%game%
- if exist %2 move %2 %y%\%game%
- if exist %3 move %3 %y%\%game%
- if not exist %y%\%game%\%1 goto Input
- if "%2"=="skip" goto Skip
- if "%3"=="skip" goto Skip
- if "%4"=="skip" goto Skip
- goto Run
-
- :Read
- type c:\dos\rundoom.txt | more
- pause > nul
- goto End
-
- :Help
- if not exist c:\dos\devadd.com goto Help1
- mode con lines=50
- echo.
- echo Sorry! No help file has been made at this time!
- echo.
- echo Call 1-419-468-0186 and ask for Ryan
- echo if you desperately need help.
- echo.
- echo Note: This might be a long-distance call for some.
- echo It is a call to Ohio. Y'know, that little
- echo shield looking thing under Canada.
- echo
- echo.
- pause
- goto End
-
- :Help1
- echo.
- echo Sorry! No help file has been made at this time!
- echo.
- echo Call 1-419-468-0186 and ask for Ryan
- echo if you desperately need help.
- echo.
- echo Note: This might be a long-distance call for some.
- echo It is a call to Ohio. Y'know, that little
- echo shield looking thing under Canada.
- echo.
- echo.
- pause
- goto End
-
- :Input
- if not exist c:\dos\devadd.com goto Imput1
- echo.
- echo Error! You use a WAD.
- echo
- echo.
- pause > nul
- goto Exit
-
- :Input1
- echo.
- echo Error! You MUST use a WAD.
- echo
- echo.
- pause > nul
- goto Exit
-
-
- :End
- %y%
- cd\%game%
- if not exist %y%\%game%\wads\nul goto Exit
- ren doom.wad doom.tmp
- if not exist *.wad goto Exit
- goto Cleanup
-
- :Cleanup
- %y%
- cd\%game%
- if exist doom.wad ren doom.wad doom.tmp
- dir *.wad /b /p
- echo.
- echo Do you want the above WADs put into
- echo your %y%\%game%\wads directory?
- echo.
- echo.
- echo.
- choice /CYN
- if errorlevel 2 goto Exit
- if not exist *.wad goto Exit
- move *.wad %y%\%game%\wads
- ren doom.tmp doom.wad
- echo.
- echo Clean up complete!
- echo.
- goto Exit
-
- :Run
- cls
- %y%
- cd\%game%
- echo Searching for level tags.
- echo Please wait...
- ctty nul
- find /I /C "e1m1" %1
- if errorlevel 1 goto TwoA
- SET %l=1
- SET %m=1
- if errorlevel 0 goto Start
-
- :TwoA
- find /I /C "e1m2" %1
- if errorlevel 1 goto ThreeA
- SET %l=1
- SET %m=2
- if errorlevel 0 goto Start
-
- :ThreeA
- find /I /C "e1m3" %1
- if errorlevel 1 goto FourA
- set %l=1
- set %m=3
- if errorlevel 0 goto Start
-
- :FourA
- find /I /C "e1m4" %1
- if errorlevel 1 goto FiveA
- set %l=1
- set %m=4
- if errorlevel 0 goto Start
-
- :FiveA
- find /I /C "e1m5" %1
- if errorlevel 1 goto SixA
- set %l=1
- set %m=5
- if errorlevel 0 goto Start
-
- :SixA
- find /I /C "e1m6" %1
- if errorlevel 1 goto SevenA
- set %l=1
- set %m=6
- if errorlevel 0 goto Start
-
- :SevenA
- find /I /C "e1m7" %1
- if errorlevel 1 goto EightA
- set %l=1
- set %m=7
- if errorlevel 0 goto Start
-
- :EightA
- find /I /C "e1m8" %1
- if errorlevel 1 goto NineA
- set %l=1
- set %m=8
- if errorlevel 0 goto Start
-
- :NineA
- find /I /C "e1m9" %1
- if errorlevel 1 goto OneB
- set %l=1
- set %m=9
- if errorlevel 0 goto Start
-
- :OneB
- find /I /C "e2m1" %1
- if errorlevel 1 goto TwoB
- set %l=2
- set %m=1
- if errorlevel 0 goto Start
-
- :TwoB
- find /I /C "e2m2" %1
- if errorlevel 1 goto ThreeB
- set %l=2
- set %m=2
- if errorlevel 0 goto Start
-
- :ThreeB
- find /I /C "e2m3" %1
- if errorlevel 1 goto FourB
- set %l=2
- set %m=3
- if errorlevel 0 goto Start
-
- :FourB
- find /I /C "e2m4" %1
- if errorlevel 1 goto FiveB
- set %l=2
- set %m=4
- if errorlevel 0 goto Start
-
- :FiveB
- find /I /C "e2m5" %1
- if errorlevel 1 goto SixB
- set %l=2
- set %m=5
- if errorlevel 0 goto Start
-
- :SixB
- find /I /C "e2m6" %1
- if errorlevel 1 goto SevenB
- set %l=2
- set %m=6
- if errorlevel 0 goto Start
-
- :SevenB
- find /I /C "e2m7" %1
- if errorlevel 1 goto EightB
- set %l=2
- set %m=7
- if errorlevel 0 goto Start
-
- :EightB
- find /I /C "e2m8" %1
- if errorlevel 1 goto NineB
- set %l=2
- set %m=8
- if errorlevel 0 goto Start
-
- :NineB
- find /I /C "e2m9" %1
- if errorlevel 1 goto OneC
- set %l=2
- set %m=9
- if errorlevel 0 goto Start
-
- :OneC
- find /I /C "e3m1" %1
- if errorlevel 1 goto TwoC
- set %l=3
- set %m=1
- if errorlevel 0 goto Start
-
- :TwoC
- find /I /C "e3m2" %1
- if errorlevel 1 goto ThreeC
- set %l=3
- set %m=2
- if errorlevel 0 goto Start
-
- :ThreeC
- find /I /C "e3m3" %1
- if errorlevel 1 goto FourC
- set %l=3
- set %m=3
- if errorlevel 0 goto Start
-
- :FourC
- find /I /C "e3m4" %1
- if errorlevel 1 goto FiveC
- set %l=3
- set %m=4
- if errorlevel 0 goto Start
-
- :FiveC
- find /I /C "e3m5" %1
- if errorlevel 1 goto SixC
- set %l=3
- set %m=5
- if errorlevel 0 goto Start
-
- :SixC
- find /I /C "e3m6" %1
- if errorlevel 1 goto SevenC
- set %l=3
- set %m=6
- if errorlevel 0 goto Start
-
- :SevenC
- find /I /C "e3m7" %1
- if errorlevel 1 goto EightC
- set %l=3
- set %m=7
- if errorlevel 0 goto Start
-
- :EightC
- find /I /C "e3m8" %1
- if errorlevel 1 goto NineC
- set %l=3
- set %m=8
- if errorlevel 0 goto Start
-
- :NineC
- find /I /C "e3m9" %1
- if errorlevel 1 goto Nofind
- set %l=3
- set %m=9
- if errorlevel 0 goto Start
-
- :Start
- ctty con
- cls
- echo.
- echo Choose your skill level:
- echo 1) I'm Too Young To Die!
- echo 2) Hey, Not Too Rough.
- echo 3) Hurt Me Plenty.
- echo 4) Ultra-Violence
- echo 5) NIGHTMARE!
- echo.
- choice /C12345
- if errorlevel 5 goto doomsk5
- if errorlevel 4 goto doomsk4
- if errorlevel 3 goto doomsk3
- if errorlevel 2 goto doomsk2
- if errorlevel 1 goto doomsk1
-
- :doomsk5
- set %a=5
- goto doomit
-
- :doomsk4
- set %a=4
- goto doomit
-
- :doomsk3
- set %a=3
- goto doomit
-
- :doomsk2
- set %a=2
- goto doomit
-
- :doomsk1
- set %a=1
- goto doomit
-
- :doomit
- echo. | %game% -file %3 %2 %1 -devparm -warp %l% %m% -skill %a%
- goto End
-
- :Skip
- cls
- %y%
- cd\%game%
- echo.
- echo Choose your skill level:
- echo 1) I'm Too Young To Die!
- echo 2) Hey, Not Too Rough.
- echo 3) Hurt Me Plenty.
- echo 4) Ultra-Violence
- echo 5) NIGHTMARE!
- echo.
- choice /C12345
- if errorlevel 5 goto Skip5
- if errorlevel 4 goto Skip4
- if errorlevel 3 goto Skip3
- if errorlevel 2 goto Skip2
- if errorlevel 1 goto Skip1
-
- :Skip5
- set %a=5
- goto SkipIt
-
- :Skip4
- set %a=4
- goto SkipIt
-
- :Skip3
- set %a=3
- goto SkipIt
-
- :Skip2
- set %a=2
- goto SkipIt
-
- :Skip1
- set %a=1
- goto SkipIt
-
- :SkipIt
- if "%2"=="skip" %game% -file %1 -devparm -warp %3 %4 -skill %a%
- if "%3"=="skip" %game% -file %2 %1 -devparm -warp %4 %5 -skill %a%
- if "%4"=="skip" %game% -file %3 %2 %1 -devparm -warp %5 %6 -skill %a%
- goto End
-
- :Nofind
- ctty con
- cls
- echo.
- echo Could not find a level tag, starting on episode 1 mission 1...
- echo.
- pause
- SET %l=1
- SET %m=1
- goto Start
-
- :wrongver
- if not exist c:\dos\devadd.com goto notver6
- echo.
- echo
- echo Sorry! You must have MS-DOS 6.0 or higher
- echo to utilize this batch file, as it
- echo uses some of the newer features
- echo that come with those versions.
- echo.
-
- :notver6
- echo.
- echo.
- echo Sorry! You must have MS-DOS 6.0 or higher
- echo to utilize this batch file, as it
- echo uses some of the newer features
- echo that come with those versions.
- echo.
-
-
- :Exit
- if not exist c:\dos\devadd.com goto Exit1
- echo
- mode con: cols=80 lines=25
- if exist doom.tmp ren doom.tmp doom.wad
- if exist *. erase *.
- call c:\dos\home.bat
- if exist *.$$$ del *.$$$
-
- :Exit1
- if exist doom.tmp ren doom.tmp doom.wad
- if exist *. erase *.
- call c:\dos\home.bat
- if exist *.$$$ del *.$$$
-